<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 使用组件 -->
         <my-cjl v-bind:msg="message"></my-cjl>
    </div>

    <script type="text/javascript">
        Vue.component('my-cjl', {
            // ... options ...
            props:['msg'],
            template: '<div>{{ msg }}</div>'
        });

        var app = new Vue({
            el:'#app',
            data: {
                message:'app 这个实例的数据'
            }
        });
    </script>
</body>

</html>